package com.ruoyi.backend.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.backend.mapper.ShopServiceMapper;
import com.ruoyi.backend.domain.ShopService;
import com.ruoyi.backend.service.IShopServiceService;

/**
 * 店铺服务Service业务层处理
 * 
 * @author wjr
 * @date 2025-09-23
 */
@Service
public class ShopServiceServiceImpl implements IShopServiceService 
{
    @Autowired
    private ShopServiceMapper shopServiceMapper;

    /**
     * 查询店铺服务
     * 
     * @param id 店铺服务主键
     * @return 店铺服务
     */
    @Override
    public ShopService selectShopServiceById(Integer id)
    {
        return shopServiceMapper.selectShopServiceById(id);
    }

    /**
     * 查询店铺服务列表
     * 
     * @param shopService 店铺服务
     * @return 店铺服务
     */
    @Override
    public List<ShopService> selectShopServiceList(ShopService shopService)
    {
        return shopServiceMapper.selectShopServiceList(shopService);
    }

    /**
     * 新增店铺服务
     * 
     * @param shopService 店铺服务
     * @return 结果
     */
    @Override
    public int insertShopService(ShopService shopService)
    {
        return shopServiceMapper.insertShopService(shopService);
    }

    /**
     * 修改店铺服务
     * 
     * @param shopService 店铺服务
     * @return 结果
     */
    @Override
    public int updateShopService(ShopService shopService)
    {
        return shopServiceMapper.updateShopService(shopService);
    }

    /**
     * 批量删除店铺服务
     * 
     * @param ids 需要删除的店铺服务主键
     * @return 结果
     */
    @Override
    public int deleteShopServiceByIds(Integer[] ids)
    {
        return shopServiceMapper.deleteShopServiceByIds(ids);
    }

    /**
     * 删除店铺服务信息
     * 
     * @param id 店铺服务主键
     * @return 结果
     */
    @Override
    public int deleteShopServiceById(Integer id)
    {
        return shopServiceMapper.deleteShopServiceById(id);
    }
}
